<?php

namespace  app\index\controller;

use app\common\controller\IndexController;
use app\index\model\LcCardsTran;
use app\index\model\FundCheck;
use app\index\model\UserCashLog;
use app\index\model\Message as messageModel;
use think\App;
use think\facade\Cache;
use think\facade\Db;
use think\facade\View;
use app\index\model\FundSource;

/**
 * 首页管理
 * Class Index
 * @package app\admin\controller
 */
class Server extends  IndexController {

    public function __construct(App $app)
    {
        parent::__construct($app);
        View::assign([
            'menu_class' => 'server',
            'menu_child' => ''
        ]);
    }

    /**
     * 首页
     * @author 救火队队长
     */
    public function  index() {
        $list = Db::name('user_set')->where(['user_id' => 0])->select()->toArray();
        View::assign([
            'list' => $list,
        ]);
        View::assign([
            'list' => $list,
            'server_desc'       => Db::name('setting')->where(['key'=>'server_desc'])->value('desc'),
            'good_user_desc'    => Db::name('setting')->where(['key'=>'good_user_desc'])->value('desc'),
        ]);
        View::layout(true);
        return View::fetch();
    }
}
